package pl.kosmowska.ewelina.client.views;

import java.util.Date;

import pl.kosmowska.ewelina.client.app.requestfactory.dto.InvestmentDataProxy;

import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.visualization.client.AbstractDataTable;

public interface InvestmentEditView extends IsWidget {

	interface Presenter {
		void goTo(Place place);

		void saveInvestmentData(String name, float value, float totalCapital, int monthNumber,
				float percentage, int installmentChoice, Date startDate,
				Date endDate);

		void goToInvestmentPlace();

		void calculateInvestment(String name, float value, float percentage,
				Date startDate, int installmentChoice, int monthNumber);
	}

	void setPresenter(Presenter presenter);


	void setData(InvestmentDataProxy investmentData);

	void showMessage(String errorMessage);

	void reInitView();


	boolean isAlreadyInit();


	void setAlreadyInit(boolean alreadyInit);


	void showSummary(float clientCapital, float finalCapital,
			float intrestAmount, float tax, Date endDate);


	void loadChart(AbstractDataTable dataTable);

}
